package com.vv.tools.common.config;

import lombok.Getter;
import lombok.Setter;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * @author wen.li
 */
@Getter
@Setter
@Configuration
public class HttpClientProperties {

    @Value("${httpClient.ReadTimeout:30000}")
    private int readTimeout;

    @Value("${httpClient.ConnectionRequestTimeout:30000}")
    private int connectionRequestTimeout;

    @Value("${httpClient.ResponseTimeout:10000}")
    private int responseTimeout;

    /**
     * 最大连接数
     */
    @Value("${httpClient.MaxTotal:100}")
    private int maxTotal;

    /**
     * 单个域名最大发送请求
     */
    @Value("${httpClient.MaxPerRoute:50}")
    private int maxPerRoute;

}
